package io.a;//package io.a;
//
//import com.rabbitmq.client.Channel;
//import io.a.config.RabbitMQConfig;
//import org.springframework.amqp.core.Message;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
//import java.io.IOException;
//
//@Component
//public class ConsumerListener {
//
//
//    @RabbitListener(queues = RabbitMQConfig.QUEUE)
//    public void consume(String msg, Channel channel, Message message) throws IOException {
//        System.out.println("队列的消息为：" + msg);
//        String correlationId = message.getMessageProperties().getCorrelationId();
//        System.out.println("唯一标识为：" + correlationId);
//        channel.basicAck(message.getMessageProperties().getDeliveryTag(),false);
//    }
//}
